package router

import (
	"gitee.com/baal1990/gitee.com/baal1990/cmd/server_attence/app/business/crypto"
	"gitee.com/baal1990/gitee.com/baal1990/cmd/server_attence/app/business/customer"
	"gitee.com/baal1990/gitee.com/baal1990/cmd/server_attence/app/business/verificationcode"
	"github.com/gin-gonic/gin"
)

func RouterCommon(r *gin.Engine) {
	r.GET("/public-key", crypto.GetPublicKey)                                        // 获取公钥
	r.GET("/msg-code", customer.GetMsgCode)                                          // 获取短信验证码
	r.GET("/graphic-verification-code/:w/:h/:deviceNo", verificationcode.ImgVerCode) // 获取图形验证码
	r.GET("/check-img-code", verificationcode.CheckImgCode)                          // 校验图形验证码
}
